package com.example.retrofit;


import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
//请求接口
public interface ApiService {
    @POST("/home_recommed")
    @FormUrlEncoded
    Call<ResponseData<Map>> test(@FieldMap Map<String,String> map);

    @POST("/edit_group")
    Call<ResponseData<Map>> uploadFile(@Body MultipartBody multipartBody);


    @POST("/home_recommed")
    @FormUrlEncoded
    Observable<ResponseData<Map>> test1(@Field("test") String a);

    @POST("/add_product")
    Observable<ResponseData<Map>> add_product(@Body MultipartBody multipartBody);

    @POST("/add_product")
    Observable<ResponseData<Map<Object,Object>>> add_product1(@Body MultipartBody multipartBody);
}
